package com.atguigu.gulimall.product.fegin;


import com.atguigu.common.to.EsSkuInfo;
import com.atguigu.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.io.IOException;
import java.util.List;

@FeignClient("gulimall-search")
public interface RemoteElasticService {
    @PostMapping("elastic/save/product")
    public R productStatuUp(@RequestBody List<EsSkuInfo> esSkuInfo);
}